2022-06-10 11:12:03 +00:00
|
|
|
import QtQuick 2.14
|
2023-05-26 12:54:10 +00:00
|
|
|
import QtQuick.Controls 2.14
|
|
|
|
|
|
|
|
import utils 1.0
|
2022-06-10 11:12:03 +00:00
|
|
|
|
|
|
|
import StatusQ.Popups 0.1
|
2023-05-26 12:54:10 +00:00
|
|
|
import shared.controls.chat.menuItems 1.0
|
|
|
|
|
|
|
|
|
|
|
|
StatusMenu {
|
|
|
|
property bool isCommunityChat: false
|
|
|
|
|
|
|
|
signal muteTriggered(interval: int)
|
|
|
|
|
|
|
|
title: isCommunityChat ? qsTr("Mute Channel") : qsTr("Mute Chat")
|
|
|
|
|
2023-06-21 20:37:51 +00:00
|
|
|
assetSettings.name: "notification-muted"
|
2023-05-26 12:54:10 +00:00
|
|
|
|
|
|
|
StatusAction {
|
|
|
|
text: qsTr("For 15 mins")
|
|
|
|
onTriggered: muteTriggered(Constants.MutingVariations.For15min)
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusAction {
|
|
|
|
text: qsTr("For 1 hour")
|
|
|
|
onTriggered: muteTriggered(Constants.MutingVariations.For1hr)
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusAction {
|
|
|
|
text: qsTr("For 8 hours")
|
|
|
|
onTriggered: muteTriggered(Constants.MutingVariations.For8hr)
|
|
|
|
}
|
2022-06-10 11:12:03 +00:00
|
|
|
|
2023-05-26 12:54:10 +00:00
|
|
|
StatusAction {
|
|
|
|
text: qsTr("For 7 days")
|
|
|
|
onTriggered: muteTriggered(Constants.MutingVariations.For1week)
|
|
|
|
}
|
2022-06-10 11:12:03 +00:00
|
|
|
|
2023-05-26 12:54:10 +00:00
|
|
|
StatusAction {
|
2023-06-21 20:37:51 +00:00
|
|
|
text: qsTr("Until I turn it back on")
|
2023-05-26 12:54:10 +00:00
|
|
|
onTriggered: muteTriggered(Constants.MutingVariations.TillUnmuted)
|
|
|
|
}
|
2022-06-10 11:12:03 +00:00
|
|
|
}
|