mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-28 02:50:39 +00:00
bug fixes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<button class="button-base" :class="buttonStyle" type="button">
|
||||
<div v-if="loading" class="icon">
|
||||
<refresh-cw-icon size="16" class="sync-alt" />
|
||||
<refresh-cw-icon size="16" class="sync-alt" :class="{'text-theme': buttonStyle === 'theme'}" />
|
||||
</div>
|
||||
<div class="content">
|
||||
<slot v-if="! loading"></slot>
|
||||
@@ -41,6 +41,10 @@
|
||||
.icon {
|
||||
line-height: 1;
|
||||
margin-right: 10px;
|
||||
|
||||
polyline, path {
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
&:active {
|
||||
@@ -52,6 +56,11 @@
|
||||
.content {
|
||||
color: white;
|
||||
}
|
||||
|
||||
polyline, path {
|
||||
color: white;
|
||||
stroke: white;
|
||||
}
|
||||
}
|
||||
|
||||
&.danger {
|
||||
@@ -63,6 +72,7 @@
|
||||
|
||||
polyline, path {
|
||||
stroke: $danger;
|
||||
color: $danger;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,6 +85,7 @@
|
||||
|
||||
polyline, path {
|
||||
stroke: white;
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,6 +98,7 @@
|
||||
|
||||
polyline, path {
|
||||
stroke: $text;
|
||||
color: $text;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<PopoverItem v-if="isInvoice" name="file-preview-contextmenu" side="right">
|
||||
<OptionGroup class="menu-option-group">
|
||||
<Option @click.native="$editInvoice(clipboard[0])" :title="$t('in.menu.edit_invoice')" icon="rename" />
|
||||
<Option @click.native="" :title="$t('in.menu.send_invoice')" icon="send" />
|
||||
<Option @click.native="$shareInvoice(clipboard[0])" :title="$t('in.menu.send_invoice')" icon="send" />
|
||||
<Option @click.native="$goToCompany(clipboard[0])" :title="$t('in.menu.show_company')" icon="user" />
|
||||
<Option @click.native="$deleteInvoice(clipboard[0])" :title="$t('context_menu.delete')" icon="trash" />
|
||||
</OptionGroup>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<!--Main navigation-->
|
||||
<OptionGroup v-if="!clickedSubmenu">
|
||||
<Option @click.native="goToFiles" :title="$t('menu.files')" icon="hard-drive" is-hover-disabled="true"/>
|
||||
<Option @click.native="goToInvoices" :title="$t('in.nav.invoices')" icon="file-text" is-hover-disabled="true" />
|
||||
<Option @click.native="$goToInvoice" :title="$t('in.nav.invoices')" icon="file-text" is-hover-disabled="true" />
|
||||
<Option @click.native.stop="showSubmenu('settings')" :title="$t('menu.settings')" icon="user" arrow="right" is-hover-disabled="true"/>
|
||||
<Option v-if="isAdmin" @click.native.stop="showSubmenu('admin')" :title="$t('menu.admin')" icon="settings" arrow="right" is-hover-disabled="true"/>
|
||||
</OptionGroup>
|
||||
@@ -95,9 +95,6 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goToInvoices() {
|
||||
this.$router.push({name: 'InvoicesList'})
|
||||
},
|
||||
goToRoute(route) {
|
||||
this.$router.push({name: route})
|
||||
this.clickedSubmenu = undefined
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
</div>
|
||||
</router-link>
|
||||
|
||||
<a @click="goToInvoice" :title="$t('in.nav.invoices')" :class="{'is-active': $isThisRoute($route, invoiceRoutes)}" class="icon-navigation-item invoice">
|
||||
<a @click="$goToInvoice" :title="$t('in.nav.invoices')" :class="{'is-active': $isThisRoute($route, invoiceRoutes)}" class="icon-navigation-item invoice">
|
||||
<div class="button-icon">
|
||||
<file-text-icon size="19" />
|
||||
</div>
|
||||
@@ -121,19 +121,6 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goToInvoice() {
|
||||
this.$router.push({name: 'InvoicesList'})
|
||||
|
||||
this.$store.commit('STORE_CURRENT_FOLDER', {
|
||||
name: 'Invoices',
|
||||
id: undefined,
|
||||
location: 'regular-invoice',
|
||||
})
|
||||
|
||||
this.$store.dispatch('getRegularInvoices')
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$store.dispatch('getAppData')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user