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

fix dataconnection unpublishing checkbox #2311

Merged
merged 1 commit into from Jul 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -12,16 +12,14 @@
* limitations under the License.
*/

import {
Component, ElementRef, EventEmitter, Injector, Output, ViewChild
} from '@angular/core';
import { DataconnectionService } from '../../dataconnection/service/dataconnection.service';
import { DeleteModalComponent } from '../../common/component/modal/delete/delete.component';
import { SetWorkspacePublishedComponent } from '../component/set-workspace-published/set-workspace-published.component';
import { CommonUtil } from '../../common/util/common.util';
import { StringUtil } from '../../common/util/string.util';
import {Component, ElementRef, EventEmitter, Injector, Output, ViewChild} from '@angular/core';
import {DataconnectionService} from '../../dataconnection/service/dataconnection.service';
import {DeleteModalComponent} from '../../common/component/modal/delete/delete.component';
import {SetWorkspacePublishedComponent} from '../component/set-workspace-published/set-workspace-published.component';
import {CommonUtil} from '../../common/util/common.util';
import {StringUtil} from '../../common/util/string.util';
import {AuthenticationType, Dataconnection} from '../../domain/dataconnection/dataconnection';
import {ConnectionComponent, ConnectionValid} from "../component/connection/connection.component";
import {ConnectionComponent} from "../component/connection/connection.component";
import {AbstractComponent} from "../../common/component/abstract.component";
import {Alert} from "../../common/util/alert.util";
import {Modal} from "../../common/domain/modal";
Expand Down Expand Up @@ -309,8 +307,9 @@ export class UpdateConnectionComponent extends AbstractComponent {
// update connection
this.connectionService.updateConnection(this._connectionId, {published: !this.originConnectionData.published})
.then((result) => {
this.originConnectionData.published = this.published = result.published;
this.originConnectionData.modifiedTime = this.published = result.modifiedTime;
this.originConnectionData.published = result.published;
this.originConnectionData.modifiedTime = result.modifiedTime;
this.published = result.published;
// alert
result['published']
? Alert.success(this.translateService.instant('msg.storage.alert.dconn-public.success'))
Expand Down