UNPKG

ng2-bs-table

Version:
30 lines 1.26 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); var table_view_action_1 = require("./table-view-action"); /** * Render link. On route call confirm. If confirm is yes then go to route. */ var TableVerifyAction = (function (_super) { __extends(TableVerifyAction, _super); function TableVerifyAction() { return _super !== null && _super.apply(this, arguments) || this; } TableVerifyAction.prototype.toRoute = function (router, data) { if (confirm('Are you sure')) { _super.prototype.toRoute.call(this, router, data); } }; return TableVerifyAction; }(table_view_action_1.TableViewAction)); exports.TableVerifyAction = TableVerifyAction; //# sourceMappingURL=table-verify-action.js.map