feat: Added support for a system-wide notification popup mechanism that works across Servarrs
This commit is contained in:
16 files changed
+587
-21
No files matched your search
@@ -10,6 +10,23 @@ pub(in crate::models::servarr_data) mod data_test_utils;
|
||||
#[cfg(test)]
|
||||
mod servarr_data_tests;
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
pub struct Notification {
|
||||
pub title: String,
|
||||
pub message: String,
|
||||
pub success: bool,
|
||||
}
|
||||
|
||||
impl Notification {
|
||||
pub fn new(title: String, message: String, success: bool) -> Self {
|
||||
Self {
|
||||
title,
|
||||
message,
|
||||
success,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, PartialEq, Eq, Debug, Default)]
|
||||
pub enum ActiveKeybindingBlock {
|
||||
#[default]
|
||||
|
||||
Reference in new issue
Block a user