client/entity-editor/button-bar/actions.js

"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.SHOW_IDENTIFIER_EDITOR = exports.SHOW_ALIAS_EDITOR = void 0;
exports.showAliasEditor = showAliasEditor;
exports.showIdentifierEditor = showIdentifierEditor;
/*
 * Copyright (C) 2016  Ben Ockmore
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

var SHOW_ALIAS_EDITOR = 'SHOW_ALIAS_EDITOR';
exports.SHOW_ALIAS_EDITOR = SHOW_ALIAS_EDITOR;
var SHOW_IDENTIFIER_EDITOR = 'SHOW_IDENTIFIER_EDITOR';
exports.SHOW_IDENTIFIER_EDITOR = SHOW_IDENTIFIER_EDITOR;
/**
 * Produces an action indicating that the alias editor should be made visible.
 *
 * @see hideAliasEditor
 *
 * @returns {Action} The resulting SHOW_ALIAS_EDITOR action.
 */
function showAliasEditor() {
  return {
    type: SHOW_ALIAS_EDITOR
  };
}

/**
 * Produces an action indicating that the identifier editor should be made
 * visible.
 *
 * @see hideIdentifierEditor
 *
 * @returns {Action} The resulting SHOW_IDENTIFIER_EDITOR action.
 */
function showIdentifierEditor() {
  return {
    type: SHOW_IDENTIFIER_EDITOR
  };
}
//# sourceMappingURL=actions.js.map