Button menu overflow
Delete folder popup confirmation
This commit is contained in:
parent
b3ee5fe9c5
commit
c141f24054
4
.env
4
.env
@ -1,5 +1,5 @@
|
|||||||
API_ID=1025907
|
API_ID=1025907
|
||||||
API_HASH=452b0359b988148995f22ff0f4229750
|
API_HASH=452b0359b988148995f22ff0f4229750
|
||||||
VERSION=0.9.0
|
VERSION=0.9.0
|
||||||
VERSION_FULL=0.9.0 (12)
|
VERSION_FULL=0.9.0 (13)
|
||||||
BUILD=12
|
BUILD=13
|
||||||
|
@ -20,6 +20,7 @@ import Button from "../../button";
|
|||||||
import AppIncludedChatsTab from "./includedChats";
|
import AppIncludedChatsTab from "./includedChats";
|
||||||
import { i18n, i18n_, LangPackKey } from "../../../lib/langPack";
|
import { i18n, i18n_, LangPackKey } from "../../../lib/langPack";
|
||||||
import { SettingSection } from "..";
|
import { SettingSection } from "..";
|
||||||
|
import PopupPeer from "../../popups/peer";
|
||||||
|
|
||||||
const MAX_FOLDER_NAME_LENGTH = 12;
|
const MAX_FOLDER_NAME_LENGTH = 12;
|
||||||
|
|
||||||
@ -55,14 +56,24 @@ export default class AppEditFolderTab extends SliderSuperTab {
|
|||||||
icon: 'delete danger',
|
icon: 'delete danger',
|
||||||
text: 'FilterMenuDelete',
|
text: 'FilterMenuDelete',
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
deleteFolderButton.element.setAttribute('disabled', 'true');
|
new PopupPeer('filter-delete', {
|
||||||
appMessagesManager.filtersStorage.updateDialogFilter(this.filter, true).then(bool => {
|
titleLangKey: 'ChatList.Filter.Confirm.Remove.Header',
|
||||||
if(bool) {
|
descriptionLangKey: 'ChatList.Filter.Confirm.Remove.Text',
|
||||||
this.close();
|
buttons: [{
|
||||||
}
|
langKey: 'Delete',
|
||||||
}).finally(() => {
|
callback: () => {
|
||||||
deleteFolderButton.element.removeAttribute('disabled');
|
deleteFolderButton.element.setAttribute('disabled', 'true');
|
||||||
});
|
appMessagesManager.filtersStorage.updateDialogFilter(this.filter, true).then(bool => {
|
||||||
|
if(bool) {
|
||||||
|
this.close();
|
||||||
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
deleteFolderButton.element.removeAttribute('disabled');
|
||||||
|
});
|
||||||
|
},
|
||||||
|
isDanger: true
|
||||||
|
}]
|
||||||
|
}).show();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.menuBtn = ButtonMenuToggle({}, 'bottom-left', [deleteFolderButton]);
|
this.menuBtn = ButtonMenuToggle({}, 'bottom-left', [deleteFolderButton]);
|
||||||
|
@ -691,6 +691,8 @@ const lang = {
|
|||||||
"ChatList.Filter.Archive": "Archived",
|
"ChatList.Filter.Archive": "Archived",
|
||||||
"ChatList.Filter.Include.LimitReached": "Sorry, you can only add up to 100 individual chats. Try using chat types.",
|
"ChatList.Filter.Include.LimitReached": "Sorry, you can only add up to 100 individual chats. Try using chat types.",
|
||||||
"ChatList.Filter.Exclude.LimitReached": "Sorry, you can only add up to 100 individual chats. Try using chat types.",
|
"ChatList.Filter.Exclude.LimitReached": "Sorry, you can only add up to 100 individual chats. Try using chat types.",
|
||||||
|
"ChatList.Filter.Confirm.Remove.Header": "Remove Folder",
|
||||||
|
"ChatList.Filter.Confirm.Remove.Text": "Are you sure you want to remove this folder? Your chats will not be deleted.",
|
||||||
"Channel.DescriptionHolderDescrpiton": "You can provide an optional description for your channel.",
|
"Channel.DescriptionHolderDescrpiton": "You can provide an optional description for your channel.",
|
||||||
"CreateGroup.NameHolder": "Group Name",
|
"CreateGroup.NameHolder": "Group Name",
|
||||||
"Date.Today": "Today",
|
"Date.Today": "Today",
|
||||||
|
@ -152,8 +152,10 @@
|
|||||||
.btn-menu-toggle {
|
.btn-menu-toggle {
|
||||||
.btn-menu {
|
.btn-menu {
|
||||||
top: calc(100% + 7px);
|
top: calc(100% + 7px);
|
||||||
|
max-height: calc(100 * var(--vh) - 4.375rem);
|
||||||
|
|
||||||
@include respond-to(handhelds) {
|
@include respond-to(handhelds) {
|
||||||
|
max-height: calc(100 * var(--vh) - 3.75rem);
|
||||||
top: 29px;
|
top: 29px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -300,6 +300,7 @@
|
|||||||
|
|
||||||
.btn-menu {
|
.btn-menu {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
|
max-height: calc(100 * var(--vh) - 3.75rem);
|
||||||
|
|
||||||
.archived-count {
|
.archived-count {
|
||||||
justify-self: flex-end;
|
justify-self: flex-end;
|
||||||
|
@ -16,6 +16,10 @@
|
|||||||
user-select: none;
|
user-select: none;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
|
|
||||||
|
.btn-menu {
|
||||||
|
overflow-y: overlay;
|
||||||
|
}
|
||||||
|
|
||||||
@include respond-to(handhelds) {
|
@include respond-to(handhelds) {
|
||||||
padding: 0 .5rem;
|
padding: 0 .5rem;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user