Skip to content

Commit

Permalink
Nuova pagina personale Utente.
Browse files Browse the repository at this point in the history
È stata creata una pagina per consultare il profilo di un utente.
Nel File Viewer quando si torna indietro viene chiusa la tab. È stato 
modificato il sistema per verificare la possibilità di modifica di un 
documento. Aggiornate le dipendenze.
  • Loading branch information
Richard1984 committed Mar 13, 2019
1 parent 8a4b73e commit e40f7f3
Show file tree
Hide file tree
Showing 14 changed files with 210 additions and 139 deletions.
182 changes: 108 additions & 74 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
"vuex": "^3.1.0"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.5.0",
"@vue/cli-plugin-eslint": "^3.5.0",
"@vue/cli-plugin-pwa": "^3.5.0",
"@vue/cli-service": "^3.5.0",
"@vue/cli-plugin-babel": "^3.5.1",
"@vue/cli-plugin-eslint": "^3.5.1",
"@vue/cli-plugin-pwa": "^3.5.1",
"@vue/cli-service": "^3.5.1",
"@vue/eslint-config-standard": "^4.0.0",
"node-sass": "^4.11.0",
"sass-loader": "^7.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/components/document/document.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<i class="fas fa-ellipsis-h"></i>
</span>
<transition name="fade">
<app-menu v-if="menu" :own="document.own" @edit="edit" @download="download" @view="view"></app-menu>
<app-menu v-if="menu" :editable="document.editable" @edit="edit" @download="download" @view="view"></app-menu>
</transition>
</div>
</div>
Expand Down
5 changes: 2 additions & 3 deletions src/components/document/menu.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="menu">
<ul>
<li class="u-noselect" v-if="own" @click="edit"><span><i class="fas fa-edit"></i></span>Modifica</li>
<li class="u-noselect" v-if="editable" @click="edit"><span><i class="fas fa-edit"></i></span>Modifica</li>
<li class="u-noselect" @click="download"><span><i class="fas fa-download"></i></span>Scarica</li>
<li class="u-noselect" @click="view"><span><i class="fas fa-eye"></i></span>Visualizza</li>
</ul>
Expand All @@ -10,8 +10,7 @@

<script>
export default {
name: 'actionsMenu',
props: ['own'],
props: ['editable'],
methods: {
edit () {
this.$emit('edit')
Expand Down
Loading

0 comments on commit e40f7f3

Please sign in to comment.