mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
Edit query: Remove "fleet" (#40943)
It gets awkward... <img width="383" height="154" alt="Screenshot 2026-03-04 at 8 17 56 AM" src="https://github.com/user-attachments/assets/82acd9d4-b692-4520-9f07-77466b950391" />
This commit is contained in:
parent
f50bf02c42
commit
e408b99013
1 changed files with 8 additions and 15 deletions
|
|
@ -566,27 +566,20 @@ const EditQueryForm = ({
|
|||
};
|
||||
|
||||
const renderQueryTeam = (isEditing = false) => {
|
||||
if (isFreeTier) return null;
|
||||
if (isFreeTier || !currentTeamName) return null;
|
||||
|
||||
if (currentTeamName) {
|
||||
if (isEditing) {
|
||||
return (
|
||||
<p>
|
||||
Editing report for <strong>{currentTeamName}</strong> fleet.
|
||||
</p>
|
||||
);
|
||||
}
|
||||
if (isEditing) {
|
||||
return (
|
||||
<p>
|
||||
Creating a new report for <strong>{currentTeamName}</strong> fleet.
|
||||
Editing report for <strong>{currentTeamName}</strong>.
|
||||
</p>
|
||||
);
|
||||
}
|
||||
|
||||
if (isEditing) {
|
||||
return <p>Editing global report.</p>;
|
||||
}
|
||||
return <p>Creating a new global report.</p>;
|
||||
return (
|
||||
<p>
|
||||
Creating a new report for <strong>{currentTeamName}</strong>.
|
||||
</p>
|
||||
);
|
||||
};
|
||||
|
||||
// Observers and observer+ of existing query
|
||||
|
|
|
|||
Loading…
Reference in a new issue