Skip to content

Commit

Permalink
popup
Browse files Browse the repository at this point in the history
  • Loading branch information
sadnub committed Jun 22, 2023
1 parent 9301fee commit a2f259b
Showing 1 changed file with 25 additions and 13 deletions.
38 changes: 25 additions & 13 deletions src/components/FileBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,20 +150,17 @@
</q-menu>
</q-btn>
<!-- integrations -->
<q-btn
v-if="
$integrations &&
$integrations.fileBarIntegrations &&
$integrations.fileBarIntegrations.length > 0
"
size="md"
dense
no-caps
flat
label="Integrations"
>
<q-btn size="md" dense no-caps flat label="Integrations">
<q-menu auto-close>
<q-list dense style="min-width: 100px">
<q-list
v-if="
$integrations &&
$integrations.fileBarIntegrations &&
$integrations.fileBarIntegrations.length > 0
"
dense
style="min-width: 100px"
>
<q-item
v-for="integration in $integrations.fileBarIntegrations"
:key="integration.name"
Expand All @@ -179,6 +176,19 @@
<q-item-section>{{ integration.name }}</q-item-section>
</q-item>
</q-list>
<q-list v-else dense style="min-width: 100px">
<q-item
clickable
v-close-popup
@click="
notifyWarning(
'This feature requires a valid code signing token.'
)
"
>
<q-item-section>Reporting Manager</q-item-section>
</q-item>
</q-list>
</q-menu>
</q-btn>
<!-- help -->
Expand Down Expand Up @@ -266,6 +276,8 @@ import ServerMaintenance from "@/components/modals/core/ServerMaintenance.vue";
import CodeSign from "@/components/modals/coresettings/CodeSign.vue";
import PermissionsManager from "@/components/accounts/PermissionsManager.vue";
import { notifyWarning } from "@/utils/notify";
export default {
name: "FileBar",
mixins: [mixins],
Expand Down

0 comments on commit a2f259b

Please sign in to comment.