File tree Expand file tree Collapse file tree 6 files changed +44
-20
lines changed Expand file tree Collapse file tree 6 files changed +44
-20
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " DiffusionBee" ,
3
- "version" : " 1.5.0 " ,
3
+ "version" : " 1.5.1 " ,
4
4
"build_number" : " 0016" ,
5
5
"website" : " https://diffusionbee.com" ,
6
6
"description" : " Diffusion Bee - Stable Diffusion App." ,
Original file line number Diff line number Diff line change @@ -170,6 +170,9 @@ export default
170
170
if (! data .settings ){
171
171
data .settings = {}
172
172
}
173
+ if (data .settings .notification_sound == undefined )
174
+ data .settings .notification_sound = true
175
+
173
176
if (! data .custom_models ){
174
177
data .custom_models = {}
175
178
}
Original file line number Diff line number Diff line change 26
26
h2 {
27
27
color : rgba (0 , 0 , 0 , 0.7 );
28
28
}
29
+ h3 {
30
+ color : rgba (0 , 0 , 0 , 0.7 );
31
+ }
29
32
p {
30
33
color : rgba (0 , 0 , 0 , 0.9 );
31
34
}
156
159
h2 {
157
160
color : rgba (255 , 255 , 255 , 0.7 );
158
161
}
162
+ h3 {
163
+ color : rgba (255 , 255 , 255 , 0.7 );
164
+ }
159
165
p {
160
166
color : rgba (255 , 255 , 255 , 0.9 );
161
167
}
Original file line number Diff line number Diff line change 21
21
Clear History
22
22
</div >
23
23
<div v-if =" Object.values(app_state.app_data.history).length > 0" >
24
- <div v-if =" get_history() .length > 30" >
25
- <b-pagination
26
- v-model =" currentPage"
27
- :total-rows =" get_history() .length"
28
- :per-page =" 30"
29
- />
30
- </div >
31
- <div v-for =" history_box in get_history() .slice((currentPage - 1) * 30, currentPage * 30)" :key =" history_box.key" style =" clear : both ;" >
24
+ <div v-if =" get_history.length > 30" >
25
+ <b-pagination
26
+ v-model =" currentPage"
27
+ :total-rows =" get_history.length"
28
+ :per-page =" 30"
29
+ />
30
+ </div >
31
+ <div v-for =" history_box in get_history.slice((currentPage - 1) * 30, currentPage * 30)" :key =" history_box.key" style =" clear : both ;" >
32
32
33
33
34
34
<div @click =" delete_hist(history_box.key)" style =" float :right ; margin-top : 10px ;" class =" l_button" >Delete</div >
66
66
</div >
67
67
68
68
<hr >
69
+
70
+
69
71
</div >
72
+
73
+ <div v-if =" get_history.length > 30" >
74
+ <b-pagination
75
+ v-model =" currentPage"
76
+ :total-rows =" get_history.length"
77
+ :per-page =" 30"
78
+ />
79
+ </div >
80
+
70
81
</div >
71
82
<div v-else >
72
83
<div class =" center" >
@@ -100,12 +111,9 @@ export default {
100
111
currentPage: 1 ,
101
112
};
102
113
},
103
- methods: {
104
- delete_hist (k ){
105
- Vue .delete ( this .app_state .app_data .history , k );
106
- },
107
114
108
- get_history () {
115
+ computed: {
116
+ get_history () {
109
117
let history = Object .values (this .app_state .app_data .history );
110
118
const that = this ;
111
119
const list = this .app_state .show_history_in_oldest_first ? history : history .reverse ();
@@ -120,8 +128,16 @@ export default {
120
128
121
129
return fuse .search (that .searchText ).map (r => r .item );
122
130
131
+ },
132
+ },
133
+
134
+ methods: {
135
+ delete_hist (k ){
136
+ Vue .delete ( this .app_state .app_data .history , k );
123
137
},
124
138
139
+
140
+
125
141
toggle_order () {
126
142
Vue .set ( this .app_state , " show_history_in_oldest_first" , ! this .app_state .show_history_in_oldest_first );
127
143
},
Original file line number Diff line number Diff line change 8
8
<br >
9
9
<div class =" setting_box" >
10
10
<div class =" settings_left" >
11
- <h2 >Notification sound</h2 >
12
- <p >Allows to start a sound when the generation of an image is completed</p >
11
+ <h3 >Notification sound</h3 >
12
+ <p >To play a notification sound when generation of an image is completed</p >
13
13
</div >
14
14
<hr >
15
15
<div style =" float :right ;margin-right : 9px ;align-self : center ;" >
16
16
<label class =" switch" >
17
- <input type =" checkbox" v-model =" app_state.app_data.settings.notification_sound" checked >
18
- <span class =" toggle round" ></span >
19
- </label >
17
+ <input type =" checkbox" v-model =" app_state.app_data.settings.notification_sound" checked >
18
+ <span class =" toggle round" ></span >
19
+ </label >
20
20
</div >
21
21
</div >
22
22
<hr >
Original file line number Diff line number Diff line change 291
291
align-items : center ;
292
292
letter-spacing : -0.08px ;
293
293
294
- color : rgba (0 , 0 , 0 , 0.9 );
295
294
}
296
295
297
296
You can’t perform that action at this time.
0 commit comments