Skip to content

Commit

Permalink
Don't allow text selection of config buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Dec 19, 2024
1 parent 6ba345d commit a0c60ec
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 27 deletions.
24 changes: 12 additions & 12 deletions api/web/src/components/Admin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</h4>
<div class='list-group list-group-transparent'>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": String($route.name) === "admin-server",
"cursor-pointer": String($route.name) !== "admin-server"
Expand All @@ -37,7 +37,7 @@
/><span class='mx-3'>TAK Server Connection</span>
</span>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": String($route.name) === "admin-config",
"cursor-pointer": String($route.name) !== "admin-config"
Expand All @@ -48,7 +48,7 @@
stroke='1'
/><span class='mx-3'>CloudTAK Settings</span></span>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": String($route.name) === "admin-task-raw",
"cursor-pointer": String($route.name) !== "admin-task-raw"
Expand All @@ -59,7 +59,7 @@
stroke='1'
/><span class='mx-3'>ETL Containers</span></span>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": String($route.name).includes("admin-overlays"),
"cursor-pointer": !String($route.name).includes("admin-overlays")
Expand All @@ -70,7 +70,7 @@
stroke='1'
/><span class='mx-3'>Global Overlays</span></span>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": String($route.name) === "admin-task",
"cursor-pointer": String($route.name) !== "admin-task"
Expand All @@ -81,7 +81,7 @@
stroke='1'
/><span class='mx-3'>Registered Tasks</span></span>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": String($route.name) === "admin-connection",
"cursor-pointer": String($route.name) !== "admin-connection"
Expand All @@ -92,7 +92,7 @@
stroke='1'
/><span class='mx-3'>Connections</span></span>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": String($route.name) === "admin-layer",
"cursor-pointer": String($route.name) !== "admin-layer"
Expand All @@ -103,7 +103,7 @@
stroke='1'
/><span class='mx-3'>Layers</span></span>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": String($route.name) === "admin-data",
"cursor-pointer": String($route.name) !== "admin-data"
Expand All @@ -114,7 +114,7 @@
stroke='1'
/><span class='mx-3'>Data Syncs</span></span>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": String($route.name).startsWith("admin-user"),
"cursor-pointer": !String($route.name).startsWith("admin-user")
Expand All @@ -125,7 +125,7 @@
stroke='1'
/><span class='mx-3'>Users</span></span>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": String($route.name).includes("admin-video"),
"cursor-pointer": !String($route.name).includes("admin-video")
Expand All @@ -136,7 +136,7 @@
stroke='1'
/><span class='mx-3'>Video Services</span></span>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": String($route.name).includes("admin-export"),
"cursor-pointer": !String($route.name).includes("admin-export")
Expand All @@ -147,7 +147,7 @@
stroke='1'
/><span class='mx-3'>Export</span></span>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": String($route.name).includes("admin-templates"),
"cursor-pointer": !String($route.name).includes("admin-templates")
Expand Down
12 changes: 6 additions & 6 deletions api/web/src/components/Connection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
</h4>
<div class='list-group list-group-transparent'>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": $route.name === "connection-layers",
"cursor-pointer": $route.name !== "connection-layers"
Expand All @@ -124,7 +124,7 @@
:stroke='1'
/><span class='mx-3'>Layers</span></span>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": $route.name === "connection-groups",
"cursor-pointer": $route.name !== "connection-groups"
Expand All @@ -135,7 +135,7 @@
:stroke='1'
/><span class='mx-3'>Channels</span></span>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": $route.name === "connection-datas",
"cursor-pointer": $route.name !== "connection-datas"
Expand All @@ -146,7 +146,7 @@
:stroke='1'
/><span class='mx-3'>Data Syncs</span></span>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": $route.name === "connection-sinks",
"cursor-pointer": $route.name !== "connection-sinks"
Expand All @@ -157,7 +157,7 @@
:stroke='1'
/><span class='mx-3'>Outbounds Sinks</span></span>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": $route.name === "connection-healths",
"cursor-pointer": $route.name !== "connection-healths"
Expand All @@ -168,7 +168,7 @@
:stroke='1'
/><span class='mx-3'>Health &amp; Metrics</span></span>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": $route.name === "connection-tokens",
"cursor-pointer": $route.name !== "connection-tokens"
Expand Down
8 changes: 4 additions & 4 deletions api/web/src/components/Data.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
</h4>
<div class='list-group list-group-transparent'>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": $route.name === "data-groups",
"cursor-pointer": $route.name !== "data-groups"
Expand All @@ -138,7 +138,7 @@
:stroke='1'
/><span class='mx-3'>Channels</span></span>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": $route.name === "data-files",
"cursor-pointer": $route.name !== "data-files"
Expand All @@ -149,7 +149,7 @@
:stroke='1'
/><span class='mx-3'>Files</span></span>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": $route.name === "data-layer",
"cursor-pointer": $route.name !== "data-layer"
Expand All @@ -160,7 +160,7 @@
:stroke='1'
/><span class='mx-3'>Layers</span></span>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": $route.name === "data-jobs",
"cursor-pointer": $route.name !== "data-jobs"
Expand Down
10 changes: 5 additions & 5 deletions api/web/src/components/Layer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
</h4>
<div class='list-group list-group-transparent'>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": $route.name === "layer-deployment",
"cursor-pointer": $route.name !== "layer-deployment"
Expand All @@ -127,7 +127,7 @@
:stroke='1'
/><span class='mx-3'>Deployment</span></span>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": $route.name === "layer-config",
"cursor-pointer": $route.name !== "layer-config"
Expand All @@ -138,7 +138,7 @@
:stroke='1'
/><span class='mx-3'>Config</span></span>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": $route.name === "layer-environment",
"cursor-pointer": $route.name !== "layer-environment"
Expand All @@ -149,7 +149,7 @@
:stroke='1'
/><span class='mx-3'>Environment</span></span>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": $route.name === "layer-schema",
"cursor-pointer": $route.name !== "layer-schema"
Expand All @@ -160,7 +160,7 @@
:stroke='1'
/><span class='mx-3'>Schema</span></span>
<span
class='list-group-item list-group-item-action d-flex align-items-center'
class='list-group-item list-group-item-action d-flex align-items-center user-select-none'
:class='{
"active": $route.name === "layer-styles",
"cursor-pointer": $route.name !== "layer-styles"
Expand Down

0 comments on commit a0c60ec

Please sign in to comment.