Enabled header teleports
gitea/salix-front/pipeline/head This commit looks good
Details
gitea/salix-front/pipeline/head This commit looks good
Details
This commit is contained in:
parent
e7f7125a60
commit
a139debeb5
|
@ -5754,9 +5754,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/caniuse-lite": {
|
"node_modules/caniuse-lite": {
|
||||||
"version": "1.0.30001344",
|
"version": "1.0.30001431",
|
||||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001344.tgz",
|
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001431.tgz",
|
||||||
"integrity": "sha512-0ZFjnlCaXNOAYcV7i+TtdKBp0L/3XEU2MF/x6Du1lrh+SRX4IfzIVL4HNJg5pB2PmFb8rszIGyOvsZnqqRoc2g==",
|
"integrity": "sha512-zBUoFU0ZcxpvSt9IU66dXVT/3ctO1cy4y9cscs1szkPlcWb6pasYM144GqrUygUbT+k7cmUCW61cvskjcv0enQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
@ -25351,9 +25351,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"caniuse-lite": {
|
"caniuse-lite": {
|
||||||
"version": "1.0.30001344",
|
"version": "1.0.30001431",
|
||||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001344.tgz",
|
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001431.tgz",
|
||||||
"integrity": "sha512-0ZFjnlCaXNOAYcV7i+TtdKBp0L/3XEU2MF/x6Du1lrh+SRX4IfzIVL4HNJg5pB2PmFb8rszIGyOvsZnqqRoc2g==",
|
"integrity": "sha512-zBUoFU0ZcxpvSt9IU66dXVT/3ctO1cy4y9cscs1szkPlcWb6pasYM144GqrUygUbT+k7cmUCW61cvskjcv0enQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"capture-exit": {
|
"capture-exit": {
|
||||||
|
|
|
@ -7,7 +7,6 @@ import axios from 'axios';
|
||||||
import { useState } from 'src/composables/useState';
|
import { useState } from 'src/composables/useState';
|
||||||
import { useValidator } from 'src/composables/useValidator';
|
import { useValidator } from 'src/composables/useValidator';
|
||||||
import SkeletonForm from 'src/components/SkeletonForm.vue';
|
import SkeletonForm from 'src/components/SkeletonForm.vue';
|
||||||
import TeleportSlot from 'src/components/ui/TeleportSlot';
|
|
||||||
|
|
||||||
const quasar = useQuasar();
|
const quasar = useQuasar();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
@ -94,17 +93,6 @@ function filter(value, update, filterOptions) {
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<teleport-slot to="#header-actions">
|
|
||||||
<div class="row q-gutter-x-sm">
|
|
||||||
<q-btn @click="addRow()" icon="save" color="primary" flat dense rounded>
|
|
||||||
<q-tooltip bottom> {{ t('globals.save') }} </q-tooltip>
|
|
||||||
</q-btn>
|
|
||||||
<q-btn @click="addRow()" icon="clear_all" color="primary" flat dense rounded>
|
|
||||||
<q-tooltip bottom> {{ t('globals.reset') }} </q-tooltip>
|
|
||||||
</q-btn>
|
|
||||||
<q-separator vertical />
|
|
||||||
</div>
|
|
||||||
</teleport-slot>
|
|
||||||
<q-banner v-if="hasChanges" class="text-white bg-warning">
|
<q-banner v-if="hasChanges" class="text-white bg-warning">
|
||||||
<q-icon name="warning" size="md" class="q-mr-md" />
|
<q-icon name="warning" size="md" class="q-mr-md" />
|
||||||
<span>{{ t('globals.changesToSave') }}</span>
|
<span>{{ t('globals.changesToSave') }}</span>
|
||||||
|
|
|
@ -1,11 +1,15 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import { useQuasar } from 'quasar';
|
||||||
import Navbar from 'src/components/Navbar.vue';
|
import Navbar from 'src/components/Navbar.vue';
|
||||||
|
|
||||||
|
const quasar = useQuasar();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<q-layout view="hHh LpR fFf">
|
<q-layout view="hHh LpR fFf">
|
||||||
<Navbar />
|
<Navbar />
|
||||||
<router-view></router-view>
|
<router-view></router-view>
|
||||||
|
<q-footer v-if="quasar.platform.is.mobile"></q-footer>
|
||||||
</q-layout>
|
</q-layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -78,17 +78,9 @@ function hide() {
|
||||||
ref="fetcher"
|
ref="fetcher"
|
||||||
:url="`Claims/${route.params.id}`"
|
:url="`Claims/${route.params.id}`"
|
||||||
:filter="filter"
|
:filter="filter"
|
||||||
@on-fetch="($data) => (claim = $data)"
|
@on-fetch="(data) => (claim = data)"
|
||||||
auto-load
|
auto-load
|
||||||
/>
|
/>
|
||||||
<teleport-slot to="#header-actions">
|
|
||||||
<div class="row q-gutter-x-sm">
|
|
||||||
<q-btn @click="addRow()" icon="add" color="primary" dense rounded>
|
|
||||||
<q-tooltip bottom> {{ t('globals.add') }} </q-tooltip>
|
|
||||||
</q-btn>
|
|
||||||
<q-separator vertical />
|
|
||||||
</div>
|
|
||||||
</teleport-slot>
|
|
||||||
<paginate :data="claim.rmas">
|
<paginate :data="claim.rmas">
|
||||||
<template #body="{ rows }">
|
<template #body="{ rows }">
|
||||||
<q-card class="card">
|
<q-card class="card">
|
||||||
|
@ -137,6 +129,20 @@ function hide() {
|
||||||
</q-card-actions>
|
</q-card-actions>
|
||||||
</q-card>
|
</q-card>
|
||||||
</q-dialog>
|
</q-dialog>
|
||||||
|
<teleport-slot v-if="!quasar.platform.is.mobile" to="#header-actions">
|
||||||
|
<div class="row q-gutter-x-sm">
|
||||||
|
<q-btn @click="addRow()" icon="add" color="primary" dense rounded>
|
||||||
|
<q-tooltip bottom> {{ t('globals.add') }} </q-tooltip>
|
||||||
|
</q-btn>
|
||||||
|
<q-separator vertical />
|
||||||
|
</div>
|
||||||
|
</teleport-slot>
|
||||||
|
|
||||||
|
<teleport-slot to=".q-footer">
|
||||||
|
<q-tabs align="justify" inline-label narrow-indicator>
|
||||||
|
<q-tab @click="addRow()" icon="add_circle" :label="t('globals.add')" />
|
||||||
|
</q-tabs>
|
||||||
|
</teleport-slot>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
Loading…
Reference in New Issue