Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function(t, e, n) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var s = n(13),
- o = n.n(s),
- i = n(12),
- a = n.n(i),
- r = n(4),
- c = n(5);
- e.default = {
- components: {
- List: a.a
- },
- data: function() {
- return {
- title: "Téléphone",
- ignoreControls: !1,
- callList: [{
- display: "Police",
- subMenu: [{
- title: "Signaler un vol",
- eventName: "police",
- type: "Vole"
- }, {
- title: "Signaler une agression",
- eventName: "police",
- type: "Aggression"
- }, {
- title: "Autre",
- eventName: "police"
- }]
- }, {
- display: "Ambulance",
- subMenu: [{
- title: "Appel pour réanimation",
- eventName: "medic",
- type: "Une personne est dans le coma"
- }, {
- title: "Appel pour des soins",
- eventName: "medic",
- type: "J'ai besoin de soins"
- }]
- }]
- }
- },
- methods: {
- onSelect: function(t) {
- var e = this;
- !0 !== this.ignoreControls && (this.ignoreControls = !0, c.a.CreateModal({
- choix: [].concat(o()(t.subMenu), [{
- title: "Retour"
- }])
- }).then(function(t) {
- e.ignoreControls = !1, "Retour" !== t.title && r.a.callEvent(t.eventName, t.type)
- }))
- },
- onBackspace: function() {
- !0 !== this.ignoreControls && history.back()
- }
- },
- created: function() {
- this.$bus.$on("keyUpBackspace", this.onBackspace)
- },
- beforeDestroy: function() {
- this.$bus.$off("keyUpBackspace", this.onBackspace)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement