How to use the angular2-toaster.BodyOutputType function in angular2-toaster

To help you get started, we’ve selected a few angular2-toaster examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github eosrio / simpleos / src / app / services / accounts.service.js View on Github external
accounts.forEach(function (account) {
                            var idx = payload.accounts.findIndex(function (elem) {
                                return elem.name === account.account_name || elem.account_name === account.account_name;
                            });
                            if (idx === -1) {
                                payload.accounts.push(account);
                            }
                            else {
                                var toast = {
                                    type: 'info',
                                    title: 'Import',
                                    body: 'The account ' + account.account_name + ' was already imported! Skipping...',
                                    timeout: 10000,
                                    showCloseButton: true,
                                    bodyOutputType: angular2_toaster_1.BodyOutputType.TrustedHtml,
                                };
                                _this.toaster.popAsync(toast);
                            }
                        });
                        payload.updatedOn = new Date();
github eosrio / simpleos / src / app / landing / landing.component.js View on Github external
this.config = new angular2_toaster_1.ToasterConfig({
            positionClass: 'toast-top-right',
            timeout: 10000,
            newestOnTop: true,
            tapToDismiss: true,
            preventDuplicates: false,
            animation: 'slideDown',
            limit: 1,
        });
        var toast = {
            type: type,
            title: title,
            body: body,
            timeout: 10000,
            showCloseButton: true,
            bodyOutputType: angular2_toaster_1.BodyOutputType.TrustedHtml,
        };
        this.toaster.popAsync(toast);
    };
    LandingComponent.prototype.ngOnInit = function () {
github eosrio / simpleos / src / app / dashboard / dapp / dapp.component.js View on Github external
this.config = new angular2_toaster_1.ToasterConfig({
            positionClass: 'toast-top-right',
            timeout: 10000,
            newestOnTop: true,
            tapToDismiss: true,
            preventDuplicates: false,
            animation: 'slideDown',
            limit: 1,
        });
        var toast = {
            type: type,
            title: title,
            body: body,
            timeout: 10000,
            showCloseButton: true,
            bodyOutputType: angular2_toaster_1.BodyOutputType.TrustedHtml,
        };
        this.toaster.popAsync(toast);
    };
    DappComponent.prototype.setActions = function (abi) {
github eosrio / simpleos / src / app / dashboard / vote / vote.component.js View on Github external
this.config = new angular2_toaster_1.ToasterConfig({
            positionClass: 'toast-top-right',
            timeout: 5000,
            newestOnTop: true,
            tapToDismiss: true,
            preventDuplicates: false,
            animation: 'slideDown',
            limit: 1,
        });
        var toast = {
            type: type,
            title: title,
            body: body,
            timeout: 5000,
            showCloseButton: true,
            bodyOutputType: angular2_toaster_1.BodyOutputType.TrustedHtml,
        };
        this.toaster.popAsync(toast);
    };
    VoteComponent.prototype.onChartInit = function (e) {
github eosrio / simpleos / src / app / dashboard / settings / config.component.js View on Github external
this.config = new angular2_toaster_1.ToasterConfig({
            positionClass: 'toast-top-right',
            timeout: 10000,
            newestOnTop: true,
            tapToDismiss: true,
            preventDuplicates: false,
            animation: 'slideDown',
            limit: 1,
        });
        var toast = {
            type: type,
            title: title,
            body: body,
            timeout: 10000,
            showCloseButton: true,
            bodyOutputType: angular2_toaster_1.BodyOutputType.TrustedHtml,
        };
        this.toaster.popAsync(toast);
    };
    ConfigComponent.prototype.ngOnInit = function () {
github eosrio / simpleos / src / app / dashboard / dashboard.component.js View on Github external
this.config = new angular2_toaster_1.ToasterConfig({
            positionClass: 'toast-top-right',
            timeout: 10000,
            newestOnTop: true,
            tapToDismiss: true,
            preventDuplicates: false,
            animation: 'slideDown',
            limit: 1,
        });
        var toast = {
            type: type,
            title: title,
            body: body,
            timeout: 10000,
            showCloseButton: true,
            bodyOutputType: angular2_toaster_1.BodyOutputType.TrustedHtml,
        };
        this.toaster.popAsync(toast);
    };
    __decorate([
github eosrio / simpleos / src / app / dashboard / acc_resources / resources.component.js View on Github external
this.config = new angular2_toaster_1.ToasterConfig({
            positionClass: 'toast-top-right',
            timeout: 10000,
            newestOnTop: true,
            tapToDismiss: true,
            preventDuplicates: false,
            animation: 'slideDown',
            limit: 1,
        });
        var toast = {
            type: type,
            title: title,
            body: body,
            timeout: 10000,
            showCloseButton: true,
            bodyOutputType: angular2_toaster_1.BodyOutputType.TrustedHtml,
        };
        this.toaster.popAsync(toast);
    };
    ResourcesComponent.prototype.listbw = function (account_name) {
github eosrio / simpleos / src / app / dashboard / send / send.component.js View on Github external
this.config = new angular2_toaster_1.ToasterConfig({
            positionClass: 'toast-top-right',
            timeout: 10000,
            newestOnTop: true,
            tapToDismiss: true,
            preventDuplicates: false,
            animation: 'slideDown',
            limit: 1,
        });
        var toast = {
            type: type,
            title: title,
            body: body,
            timeout: 10000,
            showCloseButton: true,
            bodyOutputType: angular2_toaster_1.BodyOutputType.TrustedHtml,
        };
        this.toaster.popAsync(toast);
    };
    SendComponent.prototype.openEditContactModal = function (contact) {