Skip to content

Commit

Permalink
[hotfix]remove "workspace" environment check from the front end. (apa…
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfboys authored Nov 15, 2021
1 parent f96882f commit 8ff3c18
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19 deletions.
1 change: 0 additions & 1 deletion streamx-console/streamx-console-webapp/src/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ export default {
GET: '/flink/setting/get',
WEBURL: '/flink/setting/weburl',
ALL: '/flink/setting/all',
CHECK: '/flink/setting/check',
GETFLINK: '/flink/setting/getflink',
SYNC: '/flink/setting/sync',
UPDATE: '/flink/setting/update'
Expand Down
5 changes: 0 additions & 5 deletions streamx-console/streamx-console-webapp/src/api/setting.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ export function sync () {
return http.post(api.SETTING.SYNC, {})
}


export function check () {
return http.post(api.SETTING.CHECK)
}

export function update (params) {
return http.post(api.SETTING.UPDATE, params)
}
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,6 @@
import {baseUrl} from '@/api/baseUrl'
import Stomp from 'webstomp-client'
import SvgIcon from '@/components/SvgIcon'
import {check} from '@/api/setting'
export default {
components: {Ellipsis, State, SvgIcon},
Expand Down Expand Up @@ -1539,18 +1538,7 @@
},
handleAdd() {
check().then((resp) => {
const success = resp.data === true || resp.data === 'true'
if (success) {
this.$router.push({'path': '/flink/app/add'})
} else {
this.$swal.fire(
'Failed',
'Please check "StreamX Console Workspace" is defined and make sure have read and write permissions',
'error'
)
}
})
this.$router.push({'path': '/flink/app/add'})
},
handleEdit(app) {
Expand Down

0 comments on commit 8ff3c18

Please sign in to comment.