Skip to content

Commit 8626ee8

Browse files
committed
test: demo app fix
1 parent bd6d351 commit 8626ee8

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

demo-vue/app/examples/Buttons.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<MDTextField class="session-details-input" :hint="'description'" />
2222
</StackLayout>
2323
<MDFloatingActionButton src="res://ic_action_add" @tap="onTap" horizontalAlignment="center" />
24+
<MDButton fontSize="26" text="mdi-plus" class="mdi" @tap="onTap" horizontalAlignment="center" />
2425
<MDFloatingActionButton fontSize="26" text="mdi-plus" class="mdi" @tap="onTap" horizontalAlignment="center" />
2526
<MDFloatingActionButton src="res://ic_action_add" color="white" backgroundColor="blue" size="mini" @tap="onTap" horizontalAlignment="center" />
2627
<MDFloatingActionButton src="res://ic_action_add" text="test expanded" @tap="onTap" horizontalAlignment="center" />

demo-vue/app/views/Home.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ export default {
2424
};
2525
},
2626
methods: {
27-
goToExample(item) {
28-
console.log('goToExample');
27+
async goToExample(item) {
28+
console.log('goToExample', item.title);
2929
try {
30-
this.$navigateTo(item.component);
31-
} catch(err) {
30+
await this.$navigateTo(item.component);
31+
} catch (err) {
3232
console.error(err);
3333
}
3434
},
3535
goToModalExample(item) {
3636
console.log('goToModalExample');
37-
this.$showModal(item.component, { });
37+
this.$showModal(item.component, {});
3838
}
3939
}
4040
};

demo-vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "app/main",
66
"dependencies": {
77
"@mdi/font": "4.9.95",
8-
"@nativescript/core": "8.0.0",
8+
"@nativescript/core": "8.0.5",
99
"@nativescript-community/text": "1.4.11",
1010
"@nativescript-community/ui-material-activityindicator": "file:../packages/activityindicator",
1111
"@nativescript-community/ui-material-bottom-navigation": "file:../packages/bottom-navigation",

demo-vue/webpack.config.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
const webpack = require("@nativescript/webpack");
1+
const webpack = require('@nativescript/webpack');
22

33
module.exports = (env) => {
4-
webpack.init(env);
5-
6-
return webpack.resolveConfig();
7-
};
4+
webpack.init(env);
5+
return webpack.resolveConfig();
6+
};

0 commit comments

Comments
 (0)