Skip to content

Commit

Permalink
Merge pull request #547 from rufener/bugfixes
Browse files Browse the repository at this point in the history
Bugfixes
  • Loading branch information
rufener authored Jul 21, 2021
2 parents 32b5eaf + dfd0cae commit 40aa1c6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 0 additions & 4 deletions back/infolica/views/notes_maj.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ def version_view(request):
"""
Return version
"""
# Check connected
if not Utils.check_connected(request):
raise exc.HTTPForbidden()

model_version = request.dbsession.query(NotesMAJ).order_by(NotesMAJ.version.desc()).first()
model_delai = request.dbsession.query(NotesMAJ).order_by(NotesMAJ.delai.desc()).first()

Expand Down
3 changes: 3 additions & 0 deletions front/.env
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ VUE_APP_SAVE_DOCUMENT_ENDPOINT = "/save_document"
VUE_APP_AFFAIRE_DOSSIER_ENDPOINT = "/affaire_dossier/"
VUE_APP_RELPATH_DESIGNATIONS_ENDPOINT = "/A_Administratif/Désignations"

#Notes de mise à jour programme
VUE_APP_NOTESMAJ_ENDPOINT = "/notes_maj"
VUE_APP_VERSION_ENDPOINT = "/version"

#=====================================
#======== FORMATS DATES ========
Expand Down
10 changes: 7 additions & 3 deletions front/src/components/NotesMAJ/NotesMAJ.vue
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,15 @@ export default {
}
},
mounted: function(){
this.getNotesMAJ();
this.getVersion();
this.$root.$on("openNotesMAJ", () => this.showNotesMAJ = true);
this.$root.$on("notesMaj_hasAdminRights", (hasAdminRights) => this.permissions.admin = hasAdminRights);
this.$root.$on("notesMaj_hasAdminRights", (hasAdminRights) => {
this.permissions.admin = hasAdminRights;
this.getNotesMAJ();
this.getVersion();
});
}
}
</script>
Expand Down

0 comments on commit 40aa1c6

Please sign in to comment.