Skip to content

Commit da34053

Browse files
DiverVMilmartyrk
authored andcommitted
update icon
1 parent 325b356 commit da34053

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

src/app/ideation/components/add-idea/add-idea.component.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ export class AddIdeaComponent {
9090

9191
autosavedIdea: Idea | null = null;
9292
isAutosaving = false;
93+
9394
wWidth = window.innerWidth;
9495
focusIdeaStatement = false;
9596
argumentType = 'pro';
@@ -244,15 +245,6 @@ export class AddIdeaComponent {
244245
this.startAutosave();
245246
}
246247

247-
if (
248-
key === 'statement' &&
249-
value &&
250-
value.toString().trim().length > 0 &&
251-
(!this.autosaveSubscription || this.autosaveSubscription.closed)
252-
) {
253-
this.startAutosave();
254-
}
255-
256248
if (value !== null && key === 'demographics_age') {
257249
if ((value as number) > this.AGE_LIMIT) {
258250
this.ideaForm.controls[key].setValue(this.AGE_LIMIT);
@@ -504,6 +496,7 @@ export class AddIdeaComponent {
504496
if (isAutosave) {
505497
this.isAutosaving = true;
506498
}
499+
507500
if (this.autosavedIdea) {
508501
this.TopicIdeaService.update(ideaData).subscribe({
509502
next: (idea) => {
@@ -519,6 +512,7 @@ export class AddIdeaComponent {
519512
},
520513
error: (err) => {
521514
console.error(err);
515+
522516
setTimeout(() => {
523517
this.isAutosaving = false;
524518
}, this.AUTOSAVE_HIDE_DELAY);

src/app/public-topics/components/topicbox/topicbox.component.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,7 @@
162162
</div>
163163
<div class="last_edit">
164164
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
165-
<path
166-
d="M8.8143 4.18517L11.8147 7.18569L5.29947 13.7012L2.62438 13.9965C2.26626 14.0361 1.96369 13.7333 2.00354 13.3752L2.30118 10.6981L8.8143 4.18517V4.18517ZM13.6704 3.73845L12.2616 2.3296C11.8222 1.89013 11.1095 1.89013 10.67 2.3296L9.34467 3.65501L12.3451 6.65553L13.6704 5.33011C14.1099 4.89042 14.1099 4.17791 13.6704 3.73845V3.73845Z"
167-
fill="#2C3B47" />
165+
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.51592 10.5893C2.08608 8.1127 2.93461 4.94595 5.41116 3.51611C7.88771 2.08627 11.0545 2.9348 12.4843 5.41135C13.9141 7.8879 13.0656 11.0547 10.5891 12.4845C9.77102 12.9568 8.87985 13.18 8.00069 13.1792C7.58647 13.1788 7.25037 13.5143 7.24997 13.9285C7.24957 14.3427 7.58504 14.6788 7.99925 14.6792C9.13512 14.6803 10.2865 14.3912 11.3391 13.7835C14.533 11.9395 15.6274 7.85534 13.7833 4.66135C11.9393 1.46736 7.85515 0.373023 4.66116 2.21707C1.46717 4.06112 0.372828 8.14526 2.21688 11.3393C2.2329 11.367 2.25043 11.3933 2.2693 11.4182L0.511719 12.433L4.50545 13.5031L5.57556 9.50936L3.5581 10.6741C3.54599 10.6454 3.53194 10.617 3.51592 10.5893ZM8 4.25036C8.41421 4.25036 8.75 4.58614 8.75 5.00036V7.25036H10C10.4142 7.25036 10.75 7.58614 10.75 8.00036C10.75 8.41457 10.4142 8.75036 10 8.75036H7.25V5.00036C7.25 4.58614 7.58579 4.25036 8 4.25036Z" fill="#2C3B47"/>
168166
</svg>
169167
<span>{{topic.lastActivity | amTimeAgo}}</span>
170168
</div>

src/app/public-topics/components/topicbox/topicbox.component.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@
254254
}
255255
.last_edit {
256256
display: flex;
257+
align-items: center;
257258
gap: 8px;
258259
}
259260
}

0 commit comments

Comments
 (0)