This repository was archived by the owner on Apr 3, 2025. It is now read-only.
File tree 3 files changed +24
-0
lines changed
radarr/routes/releases/widgets
sonarr/routes/releases/widgets
3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
2
2
import 'package:lunasea/core.dart' ;
3
3
import 'package:lunasea/extensions/double/time.dart' ;
4
4
import 'package:lunasea/extensions/int/bytes.dart' ;
5
+ import 'package:lunasea/extensions/string/links.dart' ;
5
6
import 'package:lunasea/extensions/string/string.dart' ;
6
7
import 'package:lunasea/modules/lidarr.dart' ;
7
8
import 'package:lunasea/router/router.dart' ;
@@ -126,6 +127,13 @@ class _State extends State<LidarrReleasesTile> {
126
127
onTap: _startDownload,
127
128
loadingState: _downloadState,
128
129
),
130
+ if (widget.release.infoUrl.isNotEmpty)
131
+ LunaButton .text (
132
+ text: 'Indexer' ,
133
+ icon: Icons .info_outline_rounded,
134
+ color: LunaColours .blue,
135
+ onTap: widget.release.infoUrl.openLink,
136
+ ),
129
137
if (! widget.release.approved)
130
138
LunaButton .text (
131
139
text: 'Rejected' ,
Original file line number Diff line number Diff line change 1
1
import 'package:flutter/material.dart' ;
2
2
import 'package:lunasea/core.dart' ;
3
+ import 'package:lunasea/extensions/string/links.dart' ;
3
4
import 'package:lunasea/extensions/string/string.dart' ;
4
5
import 'package:lunasea/modules/radarr.dart' ;
5
6
@@ -118,6 +119,13 @@ class _State extends State<RadarrReleasesTile> {
118
119
onTap: _startDownload,
119
120
loadingState: _downloadState,
120
121
),
122
+ if (widget.release.infoUrl? .isNotEmpty ?? false )
123
+ LunaButton .text (
124
+ text: 'Indexer' ,
125
+ icon: Icons .info_outline_rounded,
126
+ color: LunaColours .blue,
127
+ onTap: widget.release.infoUrl! .openLink,
128
+ ),
121
129
if (widget.release.rejected! )
122
130
LunaButton .text (
123
131
text: 'Rejected' ,
Original file line number Diff line number Diff line change 1
1
import 'package:flutter/material.dart' ;
2
2
import 'package:lunasea/core.dart' ;
3
+ import 'package:lunasea/extensions/string/links.dart' ;
3
4
import 'package:lunasea/extensions/string/string.dart' ;
4
5
import 'package:lunasea/modules/sonarr.dart' ;
5
6
@@ -151,6 +152,13 @@ class _State extends State<SonarrReleasesTile> {
151
152
onTap: _startDownload,
152
153
loadingState: _downloadState,
153
154
),
155
+ if (widget.release.infoUrl? .isNotEmpty ?? false )
156
+ LunaButton .text (
157
+ text: 'Indexer' ,
158
+ icon: Icons .info_outline_rounded,
159
+ color: LunaColours .blue,
160
+ onTap: widget.release.infoUrl! .openLink,
161
+ ),
154
162
if (widget.release.rejected! )
155
163
LunaButton .text (
156
164
text: 'sonarr.Rejected' .tr (),
You can’t perform that action at this time.
0 commit comments