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 48bdc79
Showing 1 changed file with 24 additions and 14 deletions.
38 changes: 24 additions & 14 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 @@ -173,10 +170,21 @@
: undefined
"
:to="integration.type === 'route' ? integration.uri : undefined"
>
<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>{{ integration.name }}</q-item-section>
<q-item-section>Reporting Manager</q-item-section>
</q-item>
</q-list>
</q-menu>
Expand Down Expand Up @@ -266,6 +274,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 48bdc79

Please sign in to comment.