Skip to content

Commit

Permalink
feat(frontend): deck UIのカラムからアンテナ、リストの編集画面を開けるように (misskey-dev#11104)
Browse files Browse the repository at this point in the history
* feat: add edit antenna button onto deck column

* feat: add edit list button onto deck column

* docs(changelog): add deck UIのカラムのメニューからアンテナとリストの編集画面を開けるようになりました

Cherry-picks: 1ab9f09
  • Loading branch information
anatawa12 committed Jul 13, 2023
1 parent 4d9bf5e commit 064e6e2
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
### General

### Client
- deck UIのカラムのメニューからアンテナとリストの編集画面を開けるように
- 画像を動画と同様に簡単に隠せるように
- フォローやお気に入り登録をしていないチャンネルを開く時は概要ページを開くように
- 引用対象を「もっと見る」で展開した場合、「閉じる」で畳めるように
Expand Down
2 changes: 2 additions & 0 deletions locales/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,10 @@ export interface Locale {
"suspendConfirm": string;
"unsuspendConfirm": string;
"selectList": string;
"editList": string;
"selectChannel": string;
"selectAntenna": string;
"editAntenna": string;
"selectWidget": string;
"editWidgets": string;
"editWidgetsExit": string;
Expand Down
2 changes: 2 additions & 0 deletions locales/ja-JP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,10 @@ unblockConfirm: "ブロック解除しますか?"
suspendConfirm: "凍結しますか?"
unsuspendConfirm: "解凍しますか?"
selectList: "リストを選択"
editList: "リストを編集"
selectChannel: "チャンネルを選択"
selectAntenna: "アンテナを選択"
editAntenna: "アンテナを編集"
selectWidget: "ウィジェットを選択"
editWidgets: "ウィジェットを編集"
editWidgetsExit: "編集を終了"
Expand Down
21 changes: 16 additions & 5 deletions packages/frontend/src/ui/deck/antenna-column.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,22 @@ async function setAntenna() {
});
}
const menu = [{
icon: 'ti ti-pencil',
text: i18n.ts.selectAntenna,
action: setAntenna,
}];
function editAntenna() {
os.pageWindow('my/antennas/' + props.column.antennaId);
}
const menu = [
{
icon: 'ti ti-pencil',
text: i18n.ts.selectAntenna,
action: setAntenna,
},
{
icon: 'ti ti-settings',
text: i18n.ts.editAntenna,
action: editAntenna,
},
];
/*
function focus() {
Expand Down
21 changes: 16 additions & 5 deletions packages/frontend/src/ui/deck/list-column.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,20 @@ async function setList() {
});
}
const menu = [{
icon: 'ti ti-pencil',
text: i18n.ts.selectList,
action: setList,
}];
function editList() {
os.pageWindow('my/lists/' + props.column.listId);
}
const menu = [
{
icon: 'ti ti-pencil',
text: i18n.ts.selectList,
action: setList,
},
{
icon: 'ti ti-settings',
text: i18n.ts.editList,
action: editList,
},
];
</script>

0 comments on commit 064e6e2

Please sign in to comment.