Commit 2308d735 authored by Stéphane Bouvry's avatar Stéphane Bouvry
Browse files

Fix (partiel) rôle principal

parent 55956843
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -135,7 +135,9 @@ define(['exports', 'vue', 'vue-resource', 'bootbox'], function (exports, _vue, _
                    });;
                } else {
                    this.$http.post(this.$http.$options.root, this.form).then(function (res) {
                        _this3.common.roles.push(res.body);
                        var added = res.body;
                        added.principal = added.principal == 'true';
                        _this3.common.roles.push(added);
                        flashMessage('success', "Le rôle a été ajouté");
                        return;
                    }, function (err) {
+3 −1
Original line number Diff line number Diff line
@@ -238,7 +238,9 @@ var Roles = Vue.extend({
            else {
                this.$http.post(this.$http.$options.root, this.form).then(
                    (res) => {
                        this.common.roles.push(res.body);
                        var added = res.body;
                        added.principal = (added.principal == 'true');
                        this.common.roles.push(added);
                        flashMessage('success', "Le rôle a été ajouté");
                        return;
                    },