Compare commits

...

1 Commits

Author SHA1 Message Date
Tim Gröger 2666e181f5 [core] logout on capicitor in drawer 2021-11-28 14:24:14 +01:00
4 changed files with 23 additions and 4 deletions

View File

@ -16,6 +16,8 @@
},
"dependencies": {
"@flaschengeist/api": "file:./api",
"@flaschengeist/balance": "^1.0.0-alpha.1",
"@flaschengeist/schedule": "^1.0.0-alpha.4",
"@flaschengeist/users": "^1.0.0-alpha.1",
"axios": "^0.24.0",
"pinia": "^2.0.4",
@ -59,7 +61,8 @@
],
"cordova": [
"iOS >= 13.0",
"Android >= 76"
"Android >= 76",
"ChromeAndroid >= 76"
]
},
"engines": {

View File

@ -1,6 +1,6 @@
// You can add your plugins here
module.exports = [
// '@flaschengeist/balance',
// '@flaschengeist/schedule',
'@flaschengeist/balance',
'@flaschengeist/schedule',
// '@flaschengeist/pricelist',
]

View File

@ -24,6 +24,9 @@ module.exports = configure(function (/* ctx */) {
},
}
},
bin: {
linuxAndroidStudio: '/home/ferdinand/Downloads/android-studio/bin/studio.sh'
},
// https://quasar.dev/quasar-cli/prefetch-feature
// preFetch: true,

View File

@ -40,7 +40,7 @@
<shortcut-link :shortcut="element" context @delete-shortcut="deleteShortcut" />
</template>
</drag>
<q-btn flat round dense icon="mdi-exit-to-app" @click="logout()" />
<q-btn v-if="!platform.is.capacitor" flat round dense icon="mdi-exit-to-app" @click="logout()" />
</q-toolbar>
</q-header>
@ -64,6 +64,18 @@
:key="'essential' + index"
:entry="entry"
/>
<div v-if="platform.is.capacitor">
<q-separator />
<q-item clickable tag="a" target="self" @click="logout">
<q-item-section avatar>
<q-icon name="mdi-exit-to-app" />
</q-item-section>
<q-item-section>
<q-item-label>Logout</q-item-label>
</q-item-section>
</q-item>
</div>
</q-drawer>
<q-page-container>
<router-view />
@ -201,6 +213,7 @@ export default defineComponent({
shortCuts,
addShortcut,
deleteShortcut,
platform: Platform,
};
},
});