Noelia d763a09cac feat(Communities): File renames
- Removed redundant `community` word in some files from: `controls`, `views`, `popups`, `helpers ` and `panels` folders.
- Updated storybook.
- Updated squish files.

Closes #6204
2023-06-28 14:28:47 +02:00

77 lines
1.6 KiB
QML

import QtQuick 2.14
import QtQuick.Layouts 1.14
import StatusQ.Core 0.1
import StatusQ.Core.Theme 0.1
import StatusQ.Components 0.1
import StatusQ.Controls 0.1
Column {
id: root
property alias archiveSupportEnabled: archiveSupportToggle.checked
property alias requestToJoinEnabled: requestToJoinToggle.checked
property alias pinMessagesEnabled: pinMessagesToggle.checked
spacing: 0
QtObject {
id: d
readonly property int optionHeight: 64
}
RowLayout {
id: archiveSupport
width: parent.width
height: d.optionHeight
StatusBaseText {
Layout.fillWidth: true
text: qsTr("Community history service")
TapHandler {
onTapped: archiveSupportToggle.toggle()
}
}
StatusCheckBox {
id: archiveSupportToggle
checked: true
}
}
RowLayout {
width: parent.width
height: d.optionHeight
StatusBaseText {
Layout.fillWidth: true
text: qsTr("Request to join required")
TapHandler {
onTapped: requestToJoinToggle.toggle()
}
}
StatusCheckBox {
id: requestToJoinToggle
}
}
RowLayout {
width: parent.width
height: d.optionHeight
StatusBaseText {
Layout.fillWidth: true
text: qsTr("Any member can pin a message")
TapHandler {
onTapped: pinMessagesToggle.toggle()
}
}
StatusCheckBox {
id: pinMessagesToggle
}
}
}