Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
896
Issues
896
List
Boards
Labels
Service Desk
Milestones
Merge Requests
49
Merge Requests
49
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
325b52f6
Commit
325b52f6
authored
21 minutes ago
by
Marcelo Rivera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix): brought back search, but remove parameters when clearing search
parent
6b39b58b
epic/minds-pro
1 merge request
!507
WIP: (feat): Minds Pro (development branch) - Release 3
Pipeline
#79213951
failed with stages
in 6 minutes and 49 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
channel.component.html
src/app/modules/pro/channel/channel.component.html
+3
-0
channel.component.ts
src/app/modules/pro/channel/channel.component.ts
+11
-2
No files found.
src/app/modules/pro/channel/channel.component.html
View file @
325b52f6
...
...
@@ -20,6 +20,9 @@
type=
"text"
(keyup.enter)=
"search()"
>
<ng-container
*ngIf=
"query"
>
<i
class=
"material-icons clear"
(click)=
"clearSearch()"
>
close
</i>
</ng-container>
<label
class=
"mdl-textfield__label"
for=
"search"
></label>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/channel.component.ts
View file @
325b52f6
...
...
@@ -11,7 +11,7 @@ import {
OnInit
,
ViewChild
}
from
'
@angular/core
'
;
import
{
ActivatedRoute
,
NavigationEnd
,
Router
}
from
"
@angular/router
"
;
import
{
ActivatedRoute
,
Router
}
from
"
@angular/router
"
;
import
{
Session
}
from
"
../../../services/session
"
;
import
{
Subscription
}
from
"
rxjs
"
;
import
{
MindsUser
}
from
"
../../../interfaces/entities
"
;
...
...
@@ -238,7 +238,10 @@ export class ProChannelComponent implements OnInit, AfterViewInit, OnDestroy {
wire
()
{
this
.
modalService
.
create
(
WireCreatorComponent
,
this
.
channelService
.
currentChannel
,
{
onComplete
:
()
=>
{}
}
{
onComplete
:
()
=>
{
}
}
).
present
();
}
...
...
@@ -274,6 +277,12 @@ export class ProChannelComponent implements OnInit, AfterViewInit, OnDestroy {
return
this
.
router
.
navigate
(
this
.
channelService
.
getRouterLink
(
'
all
'
,
{
query
:
this
.
query
}));
}
clearSearch
()
{
this
.
query
=
''
;
const
cleanUrl
=
this
.
router
.
url
.
split
(
'
;
'
)[
0
];
this
.
router
.
navigate
([
cleanUrl
]);
}
detectChanges
()
{
this
.
cd
.
markForCheck
();
this
.
cd
.
detectChanges
();
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment