glib-web 0.14.4 → 0.14.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/nav/dialog.vue +21 -4
  2. package/package.json +1 -1
package/nav/dialog.vue CHANGED
@@ -1,13 +1,14 @@
1
1
  <template>
2
2
  <v-dialog
3
3
  v-model="model"
4
- width="600"
4
+ :width="spec.width || 600"
5
5
  :dark="false"
6
+ :fullscreen="fullscreen"
6
7
  :sm-and-down="false"
7
8
  :persistent="true"
8
9
  >
9
10
  <v-card>
10
- <v-card-title v-if="title || showClose" class="headline" primary-title>
11
+ <v-card-title v-if="title || showClose" class="text-h5" primary-title>
11
12
  {{ title }}
12
13
  <v-btn v-if="showClose" text icon class="dialog-close" @click="close">
13
14
  <v-icon>close</v-icon>
@@ -63,9 +64,21 @@ export default {
63
64
  urlLoaded: false,
64
65
  showClose: false,
65
66
  isFormDirty: false,
66
- isFormSubmitted: false
67
+ isFormSubmitted: false,
68
+ isMobile: false
67
69
  };
68
70
  },
71
+ computed: {
72
+ fullscreen() {
73
+ if (this.spec.fullscreen == "mobile" && this.isMobile) {
74
+ return true;
75
+ } else if (this.spec.fullscreen == "always") {
76
+ return true;
77
+ } else {
78
+ return false;
79
+ }
80
+ }
81
+ },
69
82
  watch: {
70
83
  model: function(val, oldVal) {
71
84
  if (!val) {
@@ -76,7 +89,7 @@ export default {
76
89
  methods: {
77
90
  $ready() {
78
91
  this.$root.vueApp = this.vueApp;
79
-
92
+ this.onResize();
80
93
  this.show(false);
81
94
  this.stack.push(this);
82
95
  },
@@ -101,6 +114,10 @@ export default {
101
114
  this.show(true);
102
115
  }
103
116
  },
117
+ onResize() {
118
+ this.isMobile = window.innerWidth < 600;
119
+ },
120
+
104
121
  show(reload) {
105
122
  const spec = this.spec;
106
123
  this.url = spec.url;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glib-web",
3
- "version": "0.14.4",
3
+ "version": "0.14.5",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {