Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Vue] Upgrade vue version to 2.7.5 #19138

Merged
merged 1 commit into from
Jul 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion generators/client/templates/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"bootstrap": "4.6.1",
"bootstrap-vue": "2.22.0",
"bootswatch": "5.1.3",
"vue": "2.7.4",
"vue": "2.7.5",
"vue-class-component": "7.2.6",
"vue-cookie": "1.1.4",
"vue-infinite-loading": "2.4.5",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import AccountService from '@/account/account.service';
@Component({
watch: {
$route() {
this.$root.$emit('bv::hide::modal', 'login-page');
(this.$root as any).$emit('bv::hide::modal', 'login-page');
}
}
})
Expand Down Expand Up @@ -51,7 +51,7 @@ export default class LoginForm extends Vue {
}).then(() => {
<%_ } _%>
this.authenticationError = false;
this.$root.$emit('bv::hide::modal','login-page');
(this.$root as any).$emit('bv::hide::modal','login-page');
this.accountService().retrieveAccount();
}).catch(()=> {
this.authenticationError = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default class <%=jhiPrefixCapitalized%>UserManagementEdit extends Vue {
if (this.userAccount.id) {
this.userManagementService().update(this.userAccount).then((res) => {
this.returnToList();
this.$root.$bvToast.toast(this.getMessageFromHeader(res).toString(), {
(this.$root as any).$bvToast.toast(this.getMessageFromHeader(res).toString(), {
toaster: 'b-toaster-top-center',
title: 'Info',
variant: 'info',
Expand All @@ -100,7 +100,7 @@ export default class <%=jhiPrefixCapitalized%>UserManagementEdit extends Vue {
<%_ } _%>
this.userManagementService().create(this.userAccount).then(res => {
this.returnToList();
this.$root.$bvToast.toast(this.getMessageFromHeader(res).toString(), {
(this.$root as any).$bvToast.toast(this.getMessageFromHeader(res).toString(), {
toaster: 'b-toaster-top-center',
title: 'Success',
variant: 'success',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default class AlertService {
<%_ } else {_%>
const alertMessage = message;
<%_ } _%>
instance.$root.$bvToast.toast(alertMessage.toString(), {
(instance.$root as any).$bvToast.toast(alertMessage.toString(), {
toaster: 'b-toaster-top-center',
title: 'Error',
variant: 'danger',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('Register Component', () => {

it('should open login modal when asked to', () => {
let called = false;
register.$root.$on('bv::show::modal', () => {
(register.$root as any).$on('bv::show::modal', () => {
called = true;
});
register.openLogin();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export default class <%= entityAngularName %>Update extends <% if (fieldsContain
<%_ } else {_%>
const message = 'A <%= entityAngularName %> is updated with identifier ' + param.id;
<%_ } _%>
return this.$root.$bvToast.toast(message.toString(), {
return (this.$root as any).$bvToast.toast(message.toString(), {
toaster: 'b-toaster-top-center',
title: 'Info',
variant: 'info',
Expand All @@ -226,7 +226,7 @@ export default class <%= entityAngularName %>Update extends <% if (fieldsContain
<%_ } else {_%>
const message = 'A <%= entityAngularName %> is created with identifier ' + param.id;
<%_ } _%>
this.$root.$bvToast.toast(message.toString(), {
(this.$root as any).$bvToast.toast(message.toString(), {
toaster: 'b-toaster-top-center',
title: 'Success',
variant: 'success',
Expand Down