Skip to content

Commit

Permalink
Fix Lints
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Oct 16, 2024
1 parent cb3ceef commit 0440a18
Show file tree
Hide file tree
Showing 10 changed files with 75 additions and 21 deletions.
10 changes: 8 additions & 2 deletions api/web/src/components/CloudTAK/Map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@
<Loading v-if='loading.main || !isLoaded' />

<template v-if='isLoaded && !loading.main'>
<WarnConfiguration v-if='warnConfiguration' @close='warnConfiguration = false' />
<WarnChannels v-else-if='warnChannels' @close='warnChannels = false' />
<WarnConfiguration
v-if='warnConfiguration'
@close='warnConfiguration = false'
/>
<WarnChannels
v-else-if='warnChannels'
@close='warnChannels = false'
/>

<div
v-if='profile'
Expand Down
7 changes: 6 additions & 1 deletion api/web/src/components/CloudTAK/Menu/Contacts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
icon='IconRefresh'
title='Refresh'
@click='fetchList'
><IconRefresh :size='32' stroke='1'/></TablerIconButton>
>
<IconRefresh
:size='32'
stroke='1'
/>
</TablerIconButton>
</template>
<template #default>
<div
Expand Down
7 changes: 6 additions & 1 deletion api/web/src/components/CloudTAK/Menu/Mission.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
v-if='!loading.initial'
title='Refresh'
@click='refresh'
><IconRefresh :size='32' stroke='1'/></TablerIconButton>
>
<IconRefresh
:size='32'
stroke='1'
/>
</TablerIconButton>
</template>
<template #default>
<TablerAlert
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@
v-if='!upload && role.permissions.includes("MISSION_WRITE")'
title='Upload File'
@click='upload = true'
><IconPlus :size='32' stroke='1'/></TablerIconButton>
>
<IconPlus
:size='32'
stroke='1'
/>
</TablerIconButton>
</template>

<TablerAlert
Expand Down
16 changes: 13 additions & 3 deletions api/web/src/components/CloudTAK/Menu/Mission/MissionLayers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,22 @@
title='New Mission Layer'
:size='24'
@click='createLayer = true'
><IconPlus :size='32' stroke='1'/></TablerIconButton>
>
<IconPlus
:size='32'
stroke='1'
/>
</TablerIconButton>
<TablerIconButton
title='Refresh Mission Layers'
:size='24'
@click='refresh'
><IconRefresh :size='32' stroke='1'/></TablerIconButton>
>
<IconRefresh
:size='32'
stroke='1'
/>
</TablerIconButton>
</template>

<div class='col-12'>
Expand All @@ -40,8 +50,8 @@
<template v-else>
<Feature
v-for='feat of feats.values()'
:deleteButton='false'
:key='feat.id'
:delete-button='false'
:feature='feat'
:mission='mission'
/>
Expand Down
14 changes: 12 additions & 2 deletions api/web/src/components/CloudTAK/Menu/Packages.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,23 @@
v-if='!loading'
title='Create Package'
@click='upload = true'
><IconPlus :size='32' stroke='1'/></TablerIconButton>
>
<IconPlus
:size='32'
stroke='1'
/>
</TablerIconButton>

<TablerIconButton
v-if='!loading'
title='Refresh'
@click='fetchList'
><IconRefresh :size='32' stroke='1'/></TablerIconButton>
>
<IconRefresh
:size='32'
stroke='1'
/>
</TablerIconButton>
</template>
<template #default>
<div
Expand Down
2 changes: 1 addition & 1 deletion api/web/src/components/CloudTAK/Menu/SettingsCallsign.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<MenuTemplate name='Callsign &amp; Device'>
<div class='mx-2'>
<SettingsCallsign/>
<SettingsCallsign />
</div>
</MenuTemplate>
</template>
Expand Down
16 changes: 13 additions & 3 deletions api/web/src/components/CloudTAK/util/MenuTemplate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,24 @@
v-if='backType === "close"'
title='Close Menu'
@click='$router.push("/")'
><IconCircleX :size='32' stroke='1'/></TablerIconButton>
>
<IconCircleX
:size='32'
stroke='1'
/>
</TablerIconButton>
<TablerIconButton
v-if='backType === "back"'
title='Close Menu'
icon='IconCircleArrowLeft'
@click='$router.back()'
><IconCircleArrowLeft :size='32' stroke='1'/></TablerIconButton>
<div v-else/>
>
<IconCircleArrowLeft
:size='32'
stroke='1'
/>
</TablerIconButton>
<div v-else />

<div
class='modal-title d-flex mx-auto'
Expand Down
12 changes: 6 additions & 6 deletions api/web/src/components/CloudTAK/util/SettingsCallsign.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ export default {
TablerEnum,
TablerLoading,
},
props: {
mode: {
type: String,
default: 'router'
}
},
emits: [
'update'
],
Expand All @@ -61,12 +67,6 @@ export default {
config: {}
}
},
props: {
mode: {
type: String,
default: 'router'
}
},
computed: {
tak_groups: function() {
const groups = [];
Expand Down
5 changes: 4 additions & 1 deletion api/web/src/components/CloudTAK/util/WarnConfiguration.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
</div>
</div>
<div class='modal-body text-white'>
<SettingsCallsign mode='emit' @update='$emit("close")'/>
<SettingsCallsign
mode='emit'
@update='$emit("close")'
/>
</div>
</TablerModal>
</template>
Expand Down

0 comments on commit 0440a18

Please sign in to comment.