2024-03-22 15:05:19 +02:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
2023-05-26 15:54:10 +03:00
|
|
|
|
|
|
|
import utils 1.0
|
2022-06-10 13:12:03 +02:00
|
|
|
|
|
|
|
import StatusQ.Popups 0.1
|
2023-05-26 15:54:10 +03: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 22:37:51 +02:00
|
|
|
assetSettings.name: "notification-muted"
|
2023-05-26 15:54:10 +03: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 13:12:03 +02:00
|
|
|
|
2024-03-22 15:05:19 +02:00
|
|
|
StatusAction {
|
|
|
|
text: qsTr("For 24 hours")
|
|
|
|
onTriggered: muteTriggered(Constants.MutingVariations.For24hr)
|
|
|
|
}
|
|
|
|
|
2023-05-26 15:54:10 +03:00
|
|
|
StatusAction {
|
|
|
|
text: qsTr("For 7 days")
|
|
|
|
onTriggered: muteTriggered(Constants.MutingVariations.For1week)
|
|
|
|
}
|
2022-06-10 13:12:03 +02:00
|
|
|
|
2023-05-26 15:54:10 +03:00
|
|
|
StatusAction {
|
2023-06-21 22:37:51 +02:00
|
|
|
text: qsTr("Until I turn it back on")
|
2023-05-26 15:54:10 +03:00
|
|
|
onTriggered: muteTriggered(Constants.MutingVariations.TillUnmuted)
|
|
|
|
}
|
2022-06-10 13:12:03 +02:00
|
|
|
}
|