Commit fb1d6b07 authored by Anton's avatar Anton

Add electron layout conditionals to components

parent ffcdf5ae
......@@ -15,7 +15,7 @@
slot(name="form-caption")
slot
.q-mt-xl
.q-mt-xl(v-if="!isElectron")
site-footer
</template>
......@@ -29,7 +29,8 @@
},
data: function () {
return {
openURL
openURL,
isElectron: process.env.IS_ELECTRON || false
}
}
}
......
......@@ -15,7 +15,7 @@
},
computed: {
show () {
return !this.overrideShow && !localStorage.getItem('hideBrowserWarning') && !this.isChrome()
return !process.env.IS_ELECTRON && !this.overrideShow && !localStorage.getItem('hideBrowserWarning') && !this.isChrome()
}
},
methods: {
......
......@@ -24,10 +24,10 @@
v-if="user", @click="$router.push({ name: 'users.manage' })") {{ user.profile ? user.profile.name : '' }}
q-btn(color="primary", flat, icon="eject",
v-if="user", @click="logout") {{ $t('navigation.logout') }}
v-if="user && !isElectron", @click="logout") {{ $t('navigation.logout') }}
q-btn(color="primary", flat, icon="arrow_forward",
v-if="!user", @click="login") {{ $t('navigation.login') }}
v-if="!user && !isElectron", @click="login") {{ $t('navigation.login') }}
</template>
<script>
......@@ -47,6 +47,9 @@
}),
userHasDocuments () {
return userHasFeature(this.user, 'documents')
},
isElectron () {
return process.env.IS_ELECTRON || false
}
},
methods: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment