File tree Expand file tree Collapse file tree 1 file changed +4
-46
lines changed
lib/ash_admin/components/top_nav Expand file tree Collapse file tree 1 file changed +4
-46
lines changed Original file line number Diff line number Diff line change @@ -22,54 +22,12 @@ defmodule AshAdmin.Components.TopNav.ActorSelect do
2222 < div >
2323 < span >
2424 < button phx-click = { @ toggle_authorizing } type = "button " >
25- < svg
26- :if = { @ authorizing }
27- width = "1em "
28- height = "1em "
29- viewBox = "0 0 16 16 "
30- fill = "white "
31- xmlns = "http://www.w3.org/2000/svg "
32- >
33- < path
34- fill-rule = "evenodd "
35- d = "M9.655 8H2.333c-.264 0-.398.068-.471.121a.73.73 0 0 0-.224.296 1.626 1.626 0 0 0-.138.59V14c0 .342.076.531.14.635.064.106.151.18.256.237a1.122 1.122 0 0 0 .436.127l.013.001h7.322c.264 0 .398-.068.471-.121a.73.73 0 0 0 .224-.296 1.627 1.627 0 0 0 .138-.59V9c0-.342-.076-.531-.14-.635a.658.658 0 0 0-.255-.237A1.122 1.122 0 0 0 9.655 8zm.012-1H2.333C.5 7 .5 9 .5 9v5c0 2 1.833 2 1.833 2h7.334c1.833 0 1.833-2 1.833-2V9c0-2-1.833-2-1.833-2zM8.5 4a3.5 3.5 0 1 1 7 0v3h-1V4a2.5 2.5 0 0 0-5 0v3h-1V4z "
36- />
37- </ svg >
38- < svg
39- :if = { ! @ authorizing }
40- width = "1em "
41- height = "1em "
42- viewBox = "0 0 16 16 "
43- fill = "white "
44- xmlns = "http://www.w3.org/2000/svg "
45- >
46- < path
47- fill-rule = "evenodd "
48- d = "M11.5 8h-7a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1zm-7-1a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h7a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-7zm0-3a3.5 3.5 0 1 1 7 0v3h-1V4a2.5 2.5 0 0 0-5 0v3h-1V4z "
49- />
50- </ svg >
25+ < span :if = { @ authorizing } > Authorizing</ span >
26+ < span :if = { ! @ authorizing } > Not Authorizing</ span >
5127 </ button >
5228 < button :if = { @ actor } phx-click = { @ toggle_actor_paused } type = "button " >
53- < svg
54- :if = { @ actor_paused }
55- width = "1em "
56- height = "1em "
57- viewBox = "0 0 16 16 "
58- fill = "white "
59- xmlns = "http://www.w3.org/2000/svg "
60- >
61- < path d = "M11.596 8.697l-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z " />
62- </ svg >
63- < svg
64- :if = { ! @ actor_paused }
65- width = "1em "
66- height = "1em "
67- viewBox = "0 0 16 16 "
68- fill = "white "
69- xmlns = "http://www.w3.org/2000/svg "
70- >
71- < path d = "M5.5 3.5A1.5 1.5 0 0 1 7 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5zm5 0A1.5 1.5 0 0 1 12 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5z " />
72- </ svg >
29+ < span :if = { @ actor_paused } > Actor Paused</ span >
30+ < span :if = { ! @ actor_paused } > Actor Active</ span >
7331 </ button >
7432 < . link
7533 :if = { @ actor }
You can’t perform that action at this time.
0 commit comments