Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,6 @@ let app = createApp({
return this.link.description.replace('\n', '<br>');
},

/**
* カスタムフィールドの編集画面へのリンクを取得
*
* @returns {string}
*/
editFieldLinkUrl: function () {
if (!this.field) return '';
return $.bcUtil.adminBaseUrl + 'bc-custom-content/custom_fields/edit/' + this.field.id;
},

/**
* 関連フィールドの ID より関連フィールドのタイトルを取得する
*
Expand Down Expand Up @@ -182,6 +172,15 @@ let app = createApp({
$.bcUtil.showLoader();
},

/**
* マスターとなるカスタムフィールドの編集画面へ遷移する
*/
editField: function () {
if (!this.field) return;
if (!confirm(bcI18n.confirmMessageOnEditField)) return;
location.href = $.bcUtil.adminBaseUrl + 'bc-custom-content/custom_fields/edit/' + this.field.id;
},

/**
* 関連リンク詳細を開く
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
}
$this->BcBaser->i18nScript([
'confirmMessageOnSaveLink' => __d('baser_core', 'グループを変更する場合、対象のグループがループ機能を利用している場合に、このフィールドの既存のエントリーデータが失われます。それでも変更してもよろしいですか?'),
'confirmMessageOnEditField' => __d('baser_core', '現在編集中の内容を破棄してカスタムフィールドのマスタ編集画面に移動します。よろしいですか?'),
]);
?>

Expand Down Expand Up @@ -74,11 +75,9 @@
<td class="col-input bca-form-table__input">
{{ linkFieldTitle }}
({{ linkTypeTitle }})
<?php $this->BcBaser->link(__d('baser_core', 'マスタ編集'), '', [
'class' => 'button-small',
':href' => 'editFieldLinkUrl',
'confirm' => __d('baser_core', '現在編集中の内容を破棄してカスタムフィールドのマスタ編集画面に移動します。よろしいですか?')
]) ?>
<button class="button-small" type="button" @click="editField">
<?php echo __d('baser_core', 'マスタ編集') ?>
</button>
</td>
</tr>

Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions plugins/bc-admin-third/webroot/js/admin/vendor.bundle.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading