⬆️ Update packages to latest version on n8n-editor-ui

This commit is contained in:
Jan Oberhauser
2019-12-29 15:02:21 -06:00
parent 7f0287ccbf
commit 49e2285573
16 changed files with 61 additions and 63 deletions

View File

@@ -63,7 +63,7 @@ export const genericHelpers = mixins(showMessage).extend({
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(255, 255, 255, 0.8)',
}
},
);
},
stopLoading () {

View File

@@ -1,7 +1,7 @@
import Vue from 'vue';
import { parse } from 'flatted';
import axios, { AxiosRequestConfig } from 'axios';
import axios, { AxiosRequestConfig, Method } from 'axios';
import {
IActivationError,
ICredentialsDecryptedResponse,
@@ -94,7 +94,7 @@ export const restApi = Vue.extend({
restApi (): IRestApi {
const self = this;
return {
async makeRestApiRequest (method: string, endpoint: string, data?: IDataObject): Promise<any> { // tslint:disable-line:no-any
async makeRestApiRequest (method: Method, endpoint: string, data?: IDataObject): Promise<any> { // tslint:disable-line:no-any
try {
const options: AxiosRequestConfig = {
method,

View File

@@ -370,7 +370,7 @@ export const workflowHelpers = mixins(
{
confirmButtonText: 'Save',
cancelButtonText: 'Cancel',
}
},
)
.then((data) => {
// @ts-ignore
@@ -403,7 +403,7 @@ export const workflowHelpers = mixins(
if (currentWorkflow === undefined || withNewName === true) {
// Workflow is new or is supposed to get saved under a new name
// so create a new entry in database
workflowData.name = workflowName.trim() as string;
workflowData.name = workflowName!.trim() as string;
if (withNewName === true) {
// If an existing workflow gets resaved with a new name

View File

@@ -29,7 +29,7 @@ export const workflowSave = mixins(
{
confirmButtonText: 'Save',
cancelButtonText: 'Cancel',
}
},
)
.then((data) => {
// @ts-ignore
@@ -62,7 +62,7 @@ export const workflowSave = mixins(
if (currentWorkflow === undefined || withNewName === true) {
// Workflow is new or is supposed to get saved under a new name
// so create a new entry in database
workflowData.name = workflowName.trim() as string;
workflowData.name = workflowName!.trim() as string;
if (withNewName === true) {
// If an existing workflow gets resaved with a new name