mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-03 00:58:50 +01:00
📌 feat: Add Support for Persistable (Non-Dismissible) Banners (#10730)
* feat: Add persistable property to banners and update related components * refactor: Clean up Banner component and improve className handling
This commit is contained in:
parent
b478560c81
commit
7080c61525
5 changed files with 42 additions and 13 deletions
|
|
@ -7,6 +7,7 @@ export interface IBanner extends Document {
|
|||
displayTo?: Date;
|
||||
type: 'banner' | 'popup';
|
||||
isPublic: boolean;
|
||||
persistable: boolean;
|
||||
}
|
||||
|
||||
const bannerSchema = new Schema<IBanner>(
|
||||
|
|
@ -36,6 +37,10 @@ const bannerSchema = new Schema<IBanner>(
|
|||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
persistable: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
{ timestamps: true },
|
||||
);
|
||||
|
|
|
|||
|
|
@ -7,4 +7,5 @@ export interface IBanner extends Document {
|
|||
displayTo?: Date;
|
||||
type: 'banner' | 'popup';
|
||||
isPublic: boolean;
|
||||
persistable: boolean;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue