Ver a proveniência

Hide save button if user not in the password generation page

Fixes: https://github.com/lesspass/lesspass/issues/243
pull/342/head
Guillaume Vincent há 7 anos
ascendente
cometimento
03951e9678
2 ficheiros alterados com 8 adições e 4 eliminações
  1. +1
    -1
      src/components/Menu.vue
  2. +7
    -3
      src/components/PasswordProfile.vue

+ 1
- 1
src/components/Menu.vue Ver ficheiro

@@ -25,7 +25,7 @@
<small><i class="fa fa-lg fa-check pl-3" aria-hidden="true"></i> saved</small>
</span>
<span v-on:click="saveOrUpdatePassword()" class="white-link"
v-if="!saved && isAuthenticated && $store.state.password.site !== ''">
v-if="!saved && isAuthenticated && $store.state.password.site !== '' && $store.state.route.path === '/'">
<i class="fa fa-lg fa-save pointer"></i>
</span>
<router-link class="white-link pl-3" :to="{ name: 'passwords'}" v-if="isAuthenticated">


+ 7
- 3
src/components/PasswordProfile.vue Ver ficheiro

@@ -26,12 +26,16 @@

.tooltip--undo {
position: absolute;
bottom: 0;
right: 0;
top: 49px;
left: 0;
right: 0;
z-index: 20;
}

.tooltip__btn--undo{
cursor: pointer;
}

.passwordProfile {
padding-top: 0.5em;
padding-bottom: 0.5em;
@@ -78,7 +82,7 @@
<div class="col">
<span class="text-white">{{ $t('Password profile deleted') }}</span>
<span
class="pull-right text-warning btn-link"
class="pull-right text-warning btn-link tooltip__btn--undo"
v-on:click="cancelDeletion()">{{ $t('UNDO') }}</span>
</div>
</div>


Carregando…
Cancelar
Guardar